#coding=UTF-8
from flask import Flask
from flask_sqlalchemy import SQLAlchemy


app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)


from apps.main.login import main_login
from apps.admin.user import admin_user
from apps.cms.link import cms_link




# 登录模块
app.register_blueprint(main_login)
#用户管理模块
app.register_blueprint(admin_user, url_prefix='/admin/user')
# 链接管理模块
app.register_blueprint(cms_link, url_prefix='/cms/link')

if __name__ == '__main__':
    app.run(debug=True)
